<div class="ibox">
	<div class="ibox-content">
	<form class="form-horizontal" action="${cxt!}/admin/commissionrule/update" id="commissionruleForm">
		<input type="hidden" name="commissionRule.id" value="${commissionRule.id!}" /> 
		<div class="form-group">
			<label for="namebasic" class="col-md-2 control-label">${_res["commission.rule.name"]}<span class="fontColorRed">&nbsp;*</span></label>
			<div class="col-md-10">
				<input type="text" class="form-control" name="commissionRule.name" placeholder="${_res["commission.rule.name"]}" value="${commissionRule.name!}" required aria-required="true">
			</div>
		</div>
		
		<div class="hr-line-dashed"></div>
		<div class="form-group">
			<label class="col-md-2 control-label">${_res["commission.rule.type"]}</label>
			<div class="col-md-10">
				   
				   <#dict type="select" class="form-control" name="commissionRule.commissiontype"  dictCode="COMMISSION_TYPE" defaultValue="${commissionRule.commissiontype!}" disabled="disabled" />
			</div>
		</div>
		
		<div class="hr-line-dashed"></div>
		<div class="form-group">
			<label for="passwordbasic" class="col-md-2 control-label">${_res["commission.rule.status"]}</label>
			<div class="col-md-10">
				<% if(commissionRule.status! =='1'){%>
					<#dict type="select" class="form-control" name="commissionRule.status"  dictCode="COMMON_STATUS" defaultValue="${commissionRule.status!}" disabled="disabled" />
				<% }else{%>
					<#dict type="select" class="form-control" name="commissionRule.status"  dictCode="COMMON_STATUS" defaultValue="${commissionRule.status!}" />
				<%}%>
			</div>
		</div>
		
		<div class="hr-line-dashed"></div>
		<div class="form-group">
			<label  class="col-md-2 control-label">${_res["commission.rule.feetype"]}</label>
			<div class="col-md-10">
			<#dict type="select" class="form-control" name="commissionRule.feetype"  dictCode="COMMISSION_FEE_TYPE" defaultValue="${commissionRule.feetype!}" disabled="disabled" />
			</div>
		</div>
		
		<div class="hr-line-dashed"></div>
		<div class="form-group">
			<label  class="col-md-2 control-label">${_res["commission.rule.currency"]}</label>
			<div class="col-md-10">
			<#dict type="select" class="form-control" name="commissionRule.currency"  dictCode="CURRENCY" defaultValue="${commissionRule.currency!}" disabled="disabled" />
			</div>
		</div>
		
		<div class="hr-line-dashed"></div>
		<div class="form-group">
			<label class="col-md-2 control-label">${_res["commission.rule.startvalue"]}<span class="fontColorRed">&nbsp;*</span></label>
			<div class="col-md-10">
				<input type="text" class="form-control" name="commissionRule.startvalue" value="${commissionRule.startvalue!}" required aria-required="true" disabled="disabled"/>
			</div>
		</div>
		
		<div class="hr-line-dashed"></div>
		<div class="form-group">
			<label class="col-md-2 control-label">${_res["commission.rule.endvalue"]}<span class="fontColorRed">&nbsp;*</span></label>
			<div class="col-md-10">
				<input type="text" class="form-control" name="commissionRule.endvalue" value="${commissionRule.endvalue!}" required aria-required="true" disabled="disabled" />
			</div>
		</div>
		
		<div class="hr-line-dashed"></div>
		<div class="form-group">
			<label  class="col-md-2 control-label">${_res["commission.rule.rebate"]}<span class="fontColorRed">&nbsp;*</span></label>
			<div class="col-md-10">
				<input type="text" class="form-control" name="commissionRule.rebate" value="${commissionRule.rebate!}" required aria-required="true" disabled="disabled" />
			</div>
		</div>
		
		<div class="hr-line-dashed"></div>
		<div class="form-group">
			<label class="col-md-2 control-label">${_res["commission.rule.expirydate"]}</label>
			  <div class="col-md-4">
		            <input type="text" class="laydate-icon form-control layer-date" onclick="laydate()" name="commissionRule.startdate"  placeholder="${_res['system.startdate']}" value="${commissionRule.startdate!}" />
		    </div>
		    <div class="col-md-4">
		        <input type="text" class="laydate-icon form-control layer-date" onclick="laydate()" name="commissionRule.endate"  placeholder="${_res['system.enddate']}" value="${commissionRule.endate!}" />
		    </div>
		<label class="col-md-2 control-label" style="text-align: left;">${_res["commission.rule.date.memo"]}</label>
		</div>
		
		<div class="hr-line-dashed"></div>
		<div class="form-group">
			<label class="col-md-2 control-label">${_res["commission.rule.period"]}</label>
			<div class="col-md-10">
				<#dict type="radio" name="commissionRule.period"  dictCode="COMMISSION_RULE_PERIOD" defaultValue="${commissionRule.period!}" disabled="disabled" />
			</div>
		</div>
		
		<div class="hr-line-dashed"></div>
		<div class="form-group">
			<label class="col-md-2 control-label">${_res["commission.rule.description"]}<span class="fontColorRed">&nbsp;*</span></label>
			<div class="col-md-10">
				<textarea name="commissionRule.description" class="form-control" rows="3" cols="9" placeholder="${_res['commission.rule.description']}"   aria-required="true">${commissionRule.description!}</textarea>
			</div>
		</div>
		<div class="hr-line-dashed"></div>
		<div class="form-group">
			<div class="col-md-10 col-md-offset-2">
				<button type="button" class="btn btn-warning"
					onClick="ajaxContent('/admin/commissionrule')">${_res["system.return"]}</button>
				<button type="submit" class="btn btn-primary" >${_res["system.submit"]}</button>
			</div>
		</div>
	</form>
   </div>
 </div>
 <#submit  formId="commissionruleForm"  divId="content" />
